//
//  XS_BuyCouponItemCell.swift
//  XueDao
//
//  Created by 范东 on 2021/1/1.
//

import UIKit

class XS_BuyCouponItemCell: UICollectionViewCell {

    @IBOutlet weak var recommentLabel: UILabel!
    @IBOutlet weak var couponPriceLabel: UILabel!
    
    var _model : XS_BuyResponseModel!
    public var model : XS_BuyResponseModel!{
        set{
            _model = newValue
            //设置数据
            if newValue.couponsDetailsMoney != "0" && newValue.couponsDetailsMoney != "" {
                couponPriceLabel.text = "-"+newValue.couponsDetailsMoney
                recommentLabel.isHidden = false
            }
        }
        get{
            return _model
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
